package com.example.myapplication;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
public class SecondClass extends AppCompatActivity {
    TextView score;
    int s1=0;
    @Override
    protected void onCreate(Bundle saveInstanceState){
        super.onCreate(saveInstanceState);
        setContentView(R.layout.secondclass);
        score=findViewById(R.id.scorea);

    }
    public void onClick1(View v){
        s1++;
        score.setText(String.valueOf(s1));
    }
    public void onClick2(View v){
        s1+=2;
        score.setText(String.valueOf(s1));
    }
    public void onClick3(View v){
        s1+=3;
        score.setText(String.valueOf(s1));
    }
    public void reset(View v){
        s1=0;
        score.setText(String.valueOf(s1));
    }
}
